package dao.user;

import domain.user.User;

/**
 * 文件描述
 * 测试Dao
 * @author 冯根源
 * @date 2020/3/18 23:04
 */
public class UserDaoTest {

    public static void main(String[] args) {
        findTest();
    }

    private static void findTest() {
        UserDaoImpl userDao = new UserDaoImpl();

        User user = userDao.FindByUserName("李四");
        System.out.println(user);
    }

    static void add() {
        UserDaoImpl userDao = new UserDaoImpl();
        User user = new User();
        user.setUsername("素素");
        user.setPassword("111222");
        userDao.add(user);
    }
}
